** social capital in North Korea
** 05/15/2025 (CPS)

******************************
** DATA : data_sc_in_nk.dta **
******************************

use "data_sc_in_nk_CPS.dta" 

***************
** Variables **
***************
/*
*trust
Q103a3re /*Trust for Workplace Colleagues*/	
Q103a4re /*Trust for Shadow Market Merchant*/	

*network
Q74A4re /*Workplace Network: Meeting Frequency*/	
sellQ50d /*Market Network: Selling Experience*/	
buyQ56d /*Market Network: Buying Experience*/	
 
* IV
avglnmarkinchh_escyr /*Market Income*/
escnkyr1968 /*Escape Year*/
work_union_reverse /*Work Union*/
escage /*Escape Age*/
socialstatusnk /*Social Status in NK*/
infoskecon /*Info of SK Economy*/
distri /*Public Distribution*/
*/

** [summary stats and correlations]
sum avglnmarkinchh_escyr escnkyr1968 sellQ50d buyQ56d work_union_reverse escage socialstatusnk infoskecon distri Q74A4re Q103a3re Q103a4re

corr avglnmarkinchh_escyr escnkyr1968 sellQ50d buyQ56d work_union_reverse escage socialstatusnk infoskecon distri Q74A4re Q103a3re Q103a4re

**************
** Analysis **
**************

** [DV = trust]
global IV avglnmarkinchh_escyr sellQ50d buyQ56d work_union_reverse escage socialstatusnk infoskecon distri Q74A4re
global IV2 escnkyr1968 sellQ50d buyQ56d work_union_reverse escage socialstatusnk infoskecon distri Q74A4re

ologit Q103a3re $IV ,robust
ologit Q103a4re $IV ,robust

ologit Q103a3re $IV2 ,robust 
ologit Q103a4re $IV2 ,robust

** [DV = network]
global IV3 avglnmarkinchh_escyr work_union_reverse escage socialstatusnk infoskecon distri Q103a3re
global IV3_2 avglnmarkinchh_escyr work_union_reverse escage socialstatusnk infoskecon distri Q103a4re
global IV4 escnkyr1968 work_union_reverse escage socialstatusnk infoskecon distri Q103a3re
global IV4_2 escnkyr1968 work_union_reverse escage socialstatusnk infoskecon distri Q103a4re

ologit Q74A4re $IV3 ,robust  
logit sellQ50d $IV3_2 ,robust
logit buyQ56d $IV3_2 ,robust

ologit Q74A4re $IV4 ,robust 
logit sellQ50d $IV4_2 ,robust
logit buyQ56d $IV4_2 ,robust